$(function () {
    loadDeadData("四川")
})

//加载数据
function loadDeadData(name) {
    var pie_curedFive = echarts.init(document.getElementById("deadCount"), 'infographic');
    option = {
        tooltip: {
            trigger: 'item',
            formatter: "{b}: <br/>  {c} ({d}%)"
        },

        toolbox: {
            show: false,
            feature: {
                mark: {show: true},
                dataView: {show: true, readOnly: false},
                magicType: {
                    show: true,
                    type: ['pie', 'funnel']
                },
                restore: {show: true},
                saveAsImage: {show: true}
            }
        },
        calculable: true,
        series: [

            {
                name: '各省死亡前五',
                type: 'pie',
                color: ['#33b565', '#20cc98', '#20b9cf', '#2089cf', '#205bcf'],
                radius: [20, 70],
                center: ['50%', '50%'],
                roseType: 'area',
                data: [
                    {name: '四川', value: 11},
                    {name: '贵州', value: 22},
                    {name: '重庆', value: 33},
                ],
            }
        ]
    };
    pie_curedFive.setOption(option);
}


